
import javax.swing.*;

public class MyTest {
    public static String count = "001";
    public static String pwd = "123";

    public static void main(String[] args){
        String input = JOptionPane.showInputDialog(null,"输入账号");
        String inPwd = JOptionPane.showInputDialog(null,"输入密码");

        if (input.equals(count)&&inPwd.equals(pwd)){
            JOptionPane.showMessageDialog(null,"登录成功");
        }else {
            throw new LoginException();
        }

    }
}
